package com.zeta.demo.kt

import com.zeta.api.config.DefaultFeignConfiguration
import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient
import org.springframework.cloud.openfeign.EnableFeignClients
import org.springframework.context.annotation.ComponentScan
import org.springframework.stereotype.Repository

/**
 * Kotlin Demo启动类
 *
 * @author gcc
 */
@ComponentScan(basePackages = ["com.zeta", "org.zetaframework"])
@MapperScan(value = ["com.zeta.**.dao"], annotationClass = Repository::class)
@EnableFeignClients(basePackages = ["com.zeta.api.client"], defaultConfiguration = [DefaultFeignConfiguration::class])
@EnableDiscoveryClient
@SpringBootApplication
class DemoKotlinApp

fun main(args: Array<String>) {
    runApplication<DemoKotlinApp>(*args)
}
